//
//  Collecton.h
//  Echo
//
//  Created by Liao on 14/12/24.
//  Copyright (c) 2014年 sina. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Tweet.h"

@interface Collecton : NSObject

@property (nonatomic, retain) NSString *collection_id;
@property (nonatomic, retain) Tweet *tweet;
@property (nonatomic, retain) NSString *owner_id;

+ (NSURLSessionDataTask *)collectionsOfCurrentUserBaseOnCursor:(NSString *)collection_id WithBlock:(void (^)(NSArray *collections, NSError *error))block;
+ (NSURLSessionDataTask *)addTweet:(Tweet *)tweet ToCollectionsByCurrentUserWithBlock:(void (^)(Collecton *new_collection, NSError *error))block;
+ (NSURLSessionDataTask *)delTweet:(Tweet *)tweet FromCollectionsByCurrentUserWithBlock:(void (^)(NSError *error))block;

+ (NSURLSessionDataTask *)checkTweets:(NSArray *)tweets AreCollectedByCurrentUserWithBlock:(void (^)(NSArray *collect_results, NSError *error))block;

@end
